Skip to content
This repository was archived by the owner on Nov 19, 2025. It is now read-only.

Conversation

@ChadKillingsworth
Copy link
Contributor

Some OS's seemed to be dropping back to the java version. The following error was being thrown when trying to locate the native version:

Error: Cannot find module 'google-closure-compiler-linux'

This tests for the file's native image existence without actually trying to import the index.js of the native package using require. A dynamic import could be used, but that would require making the function async.

@ChadKillingsworth ChadKillingsworth merged commit 3e7fbab into master May 29, 2025
9 checks passed
@ChadKillingsworth ChadKillingsworth deleted the avoid-require branch May 29, 2025 12:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants